<script setup lang="ts">
import { useRouter, useRoute } from "vue-router";

const router = useRouter();
const route = useRoute();
</script>

<template>
  个人中心页
  <button @click="() => router.push({ name: 'home', params: {id: 2} })">跳转到首页</button>
</template>

<style scoped lang="scss">

button {
  font-size: 40px;
}
</style>
